import { request } from "@/utils/service"
import type * as PointsRecord from "./types/points-record"

/**
 * 获取积分记录列表
 * @param params 查询参数
 * @returns Promise<PointsRecordResponseData>
 */
export function getPointsRecordListApi(params: PointsRecord.PointsRecordRequestData) {
  return request<PointsRecord.PointsRecordResponseData>({
    url: "/points-record/page",
    method: "get",
    params
  })
}